using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
	[Table("IcmDeliveryNoteCommittee")]
    public class DeliveryNoteCommittee
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "DnComId", ResourceType = typeof(Resources.DeliveryNoteCommitteeResource))]
        public int DnComId { get; set; }

        [ForeignKey("DeliveryNote")]
		[DataMember, Display(Name = "DnId", ResourceType = typeof(Resources.DeliveryNoteCommitteeResource))]
        public Nullable<int> DnId { get; set; }

        [ForeignKey("MasCommitteeFunction")]
		[DataMember, Display(Name = "ComFuncId", ResourceType = typeof(Resources.DeliveryNoteCommitteeResource))]
        public int ComFuncId { get; set; }

        [ForeignKey("MasCommitteePosition")]
		[DataMember, Display(Name = "ComPosId", ResourceType = typeof(Resources.DeliveryNoteCommitteeResource))]
        public int ComPosId { get; set; }

		[DataMember, Display(Name = "DnComRefNo", ResourceType = typeof(Resources.DeliveryNoteCommitteeResource))]
        public int DnComRefNo { get; set; }

        [ForeignKey("SysCommitteeType")]
		[DataMember, Display(Name = "ComTypeId", ResourceType = typeof(Resources.DeliveryNoteCommitteeResource))]
        public int ComTypeId { get; set; }

        [ForeignKey("Employee")]
		[DataMember, Display(Name = "EmpId", ResourceType = typeof(Resources.DeliveryNoteCommitteeResource))]
        public Nullable<int> EmpId { get; set; }

		[DataMember, Display(Name = "DnComExName", ResourceType = typeof(Resources.DeliveryNoteCommitteeResource))]
        public string DnComExName { get; set; }

		[DataMember, Display(Name = "DnComExDescr", ResourceType = typeof(Resources.DeliveryNoteCommitteeResource))]
        public string DnComExDescr { get; set; }

		[DataMember, Display(Name = "DeleteReason", ResourceType = typeof(Resources.DeliveryNoteCommitteeResource))]
        public string DeleteReason { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.DeliveryNoteCommitteeResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.DeliveryNoteCommitteeResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.DeliveryNoteCommitteeResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.DeliveryNoteCommitteeResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.DeliveryNoteCommitteeResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		[DataMember, Display(Name = "RestoredBy", ResourceType = typeof(Resources.DeliveryNoteCommitteeResource))]
        public Nullable<int> RestoredBy { get; set; }

		[DataMember, Display(Name = "RestoredWhen", ResourceType = typeof(Resources.DeliveryNoteCommitteeResource))]
        public Nullable<System.DateTime> RestoredWhen { get; set; }
    

		[DataMember]
        public virtual HRM.Employee HrmPsEmployees { get; set; }

		[DataMember]
        public virtual DeliveryNote DeliveryNote { get; set; }

		[DataMember]
        public virtual MasCommitteeFunction MasCommitteeFunction { get; set; }

		[DataMember]
        public virtual MasCommitteePosition MasCommitteePosition { get; set; }

		[DataMember]
        public virtual SysCommitteeType SysCommitteeType { get; set; }

        public virtual HRM.Employee Employee { get; set; }

    }
}